﻿<Window x:Class="ParsecClient.ParsecWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:UserControls="clr-namespace:ParsecClient.UserControls"
        Title="Parsec" Height="520" Width="800" MinWidth="800" MinHeight="520" WindowStyle="None" Background="Transparent" AllowsTransparency="True" ResizeMode="CanResizeWithGrip" Deactivated="Window_Deactivated" Closed="Window_Closed" Icon="/ParsecClient;component/Images/FalconIconLowRes.png" Closing="Window_Closing">
    <Border CornerRadius="3" BorderBrush="#FF444444" BorderThickness="1" Margin="10" Background="White">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"></RowDefinition>
                <RowDefinition Height="*"></RowDefinition>
                <RowDefinition Height="Auto"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Border Grid.Row="0" BorderThickness="1" CornerRadius="3,3,0,0" BorderBrush="Transparent" Margin="-1"  Background="{StaticResource MenuBackground}" MouseLeftButtonDown="DragWindow"  SnapsToDevicePixels="True">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock Grid.Column="0" FontSize="20" Foreground="#FF50504d" Padding="3 1 10 1" Margin="0 0 0 3">PARSEC</TextBlock>
                    <Menu Grid.Column="1" IsMainMenu="True" Height="Auto" FontSize="14" Margin="0 1 0 1">
                        <MenuItem Header="_File">
                            <MenuItem Name="btnLoad" Header="_Open Log File" Click="btnLoad_Click"></MenuItem>
                            <MenuItem Name="btnRecentLogs" Header="_Recently Opened" IsEnabled="False"></MenuItem>
                            <MenuItem Name="btnAbout" Header="_About Parsec" Click="btnHelp_Click"></MenuItem>
                            <MenuItem Name="btnSettings" Header="_Settings" Click="btnSettings_Click"></MenuItem>
                            <MenuItem Name="btnReleaseNotes" Header="Release Notes" Click="btnReleaseNotes_Click"></MenuItem>
                            <MenuItem Name="btnBackup" Header="Export Data" Click="btnBackup_Click" ToolTip="Export Settings, Timers and RaidGroups to a file"></MenuItem>
                            <MenuItem Name="btnRestore" Header="Import Data" Click="btnRestore_Click" ToolTip="Import Settings, Timers and RaidGroups from a file"></MenuItem>
                            <Separator />
                            <MenuItem Name="btnExit" Header="_Exit" Click="btnExit_Click"></MenuItem>
                        </MenuItem>
                        <MenuItem Header="_Pop Outs" StaysOpenOnClick="True" Name="menuPopOuts">
                            <MenuItem Name="btnStats" Header="Stat _Overview (DPS, HPS, etc...)" Click="btnStats_Click" IsCheckable="True" StaysOpenOnClick="True"></MenuItem>
                            <MenuItem Name="btnStatStopWatch" Header="_Stat Stopwatch" Click="btnStatStopWatch_Click" IsCheckable="True" StaysOpenOnClick="True"></MenuItem>
                            <MenuItem Name="btnDpsMeter" Header="DPS Meter" Click="btnDpsMeter_Click" IsCheckable="True" StaysOpenOnClick="True"></MenuItem>
                            <MenuItem Name="btnTimerPop" Header="_Timers" Click="btnTimerPop_Click" IsCheckable="True" StaysOpenOnClick="True"></MenuItem>
                            <MenuItem Name="btnRaidDps" Header="Raid _DPS" Click="btnRaidDps_Click" IsCheckable="True" StaysOpenOnClick="True"></MenuItem>
                            <MenuItem Name="btnRaidHps" Header="Raid _Healing" Click="btnRaidHps_Click" IsCheckable="True" StaysOpenOnClick="True"></MenuItem>
                            <MenuItem Name="btnRaidTps" Header="Raid _Threat Meter" Click="btnRaidTps_Click" IsCheckable="True" StaysOpenOnClick="True"></MenuItem>
                        </MenuItem>
                        <MenuItem Header="_Raid Groups" Name="menuRaidGroups">
                        </MenuItem>
                        <MenuItem Header="_Timers" Name="menuTimers">
                        </MenuItem>
                        <MenuItem Header="_Sharing" Name="menuSharing" Visibility="Collapsed">
                            <MenuItem Name="btnShareFight" Header="Share Current Fight" Click="btnShareFight_Click"></MenuItem>
                            <MenuItem Name="btnVisitSite" Header="Visit Website" Click="btnVisitSite_Click"></MenuItem>
                        </MenuItem>
                    </Menu>
                    <Grid Grid.Row="0" Grid.Column="2" Margin="4 2 0 2">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Button Name="btnWatch" Margin="0 0 0 0" Padding="0" Width="Auto" Click="btnWatch_Click" Grid.Row="0" Grid.Column="0" ToolTip="Click to begin watching the log file" HorizontalAlignment="Left" VerticalAlignment="Stretch" HorizontalContentAlignment="Left" Style="{StaticResource MenuBarButton}" SnapsToDevicePixels="True">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <Ellipse Height="15" Width="15" Stroke="#FF551111" Grid.Column="0" VerticalAlignment="Center" Margin="4,0,0,0" Fill="{StaticResource RedLightFill}"></Ellipse>
                                <TextBlock Grid.Column="1" Margin="4 0 6 0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Padding="0,0,0,1" Foreground="Black">Parse</TextBlock>
                            </Grid>
                        </Button>
                        <Button Name="btnStop" Margin="0 0 0 0" Padding="0" Width="Auto" Click="btnWatch_Click" Grid.Row="0" Grid.Column="0" ToolTip="Click to stop watching the log file" HorizontalAlignment="Left" Visibility="Collapsed" VerticalAlignment="Stretch" HorizontalContentAlignment="Left" Style="{StaticResource MenuBarButton}" SnapsToDevicePixels="True">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <Ellipse Height="15" Width="15" Stroke="#FF115511" Grid.Column="0" VerticalAlignment="Center" Margin="4,0,0,0" Fill="{StaticResource GreenLightFill}"></Ellipse>
                                <TextBlock Grid.Column="1" Margin="4 0 6 0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Padding="0,0,0,1">Parsing</TextBlock>
                            </Grid>
                        </Button>
                        <Button Name="btnConnect" Margin="4 0 0 0" Padding="0" Width="Auto" Click="btnConnect_Click" Grid.Row="0" Grid.Column="1" ToolTip="Click to connect to raid" HorizontalAlignment="Left" VerticalAlignment="Stretch" HorizontalContentAlignment="Left" Style="{StaticResource MenuBarButton}" SnapsToDevicePixels="True">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <Ellipse Height="15" Width="15" Stroke="#FF551111" Grid.Column="0" VerticalAlignment="Center" Margin="4,0,0,0" Fill="{StaticResource RedLightFill}"></Ellipse>
                                <TextBlock Grid.Column="1" Margin="4,2,6,2" HorizontalAlignment="Center" VerticalAlignment="Center"  FontSize="14" Padding="0,0,0,1" Foreground="Black">Raid</TextBlock>
                            </Grid>
                        </Button>
                        <Button Name="btnDisconnect" Margin="4 0 0 0" Padding="0" Width="Auto" Click="btnDisconnect_Click" Grid.Row="0" Grid.Column="1" ToolTip="Click to disconnect from raid" HorizontalAlignment="Left" Visibility="Collapsed" VerticalAlignment="Stretch" HorizontalContentAlignment="Left" Style="{StaticResource MenuBarButton}" SnapsToDevicePixels="True">
                            <Grid>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                                    <ColumnDefinition Width="*"></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <Ellipse Height="15" Width="15" Stroke="#FF115511" Grid.Column="0" VerticalAlignment="Center" Margin="4,0,0,0" Fill="{StaticResource GreenLightFill}"></Ellipse>
                                <TextBlock Grid.Column="1" Margin="4 0 6 0" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Padding="0,0,0,1">Raiding</TextBlock>
                            </Grid>
                        </Button>
                    </Grid>
                    <Button Name="btnHelp"  Grid.Column="3" Content="?" ToolTip="About Parsec, Help Links  &amp; Patch Notes" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,2,0" FontSize="10" Width="20" Height="20" Padding="0" Click="btnHelp_Click" Style="{StaticResource PlainButtonDark}" />
                    <Button Name="btnMinimize"  Grid.Column="4" Content="_" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,2,0" FontSize="10" Width="20" Height="20" Padding="0" Click="btnMinimize_Click" Style="{StaticResource PlainButtonDark}" />
                    <Button Name="btnClose" Grid.Column="5" Content="X" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,0,6,0" FontSize="10" Width="20" Height="20" Padding="0" Command="ApplicationCommands.Close" Style="{StaticResource PlainButtonDark}"/>
                </Grid>
            </Border>
            <Border Grid.Row="1" BorderThickness="0,1,0,0" BorderBrush="#FF666666" SnapsToDevicePixels="True" CornerRadius="0,0,3,3">
                <Grid Margin="10 0 10 0">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="278*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="250"></ColumnDefinition>
                        <ColumnDefinition Width="*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <Border Name="brdError" Grid.Row="0" Grid.ColumnSpan="2" BorderThickness="1" CornerRadius="5" Background="#FFFFDBDB" BorderBrush="#FFAA0000"  Margin="0 5 0 0" Visibility="Collapsed">
                        <Grid>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="100"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <TextBlock Grid.Column="0" Name="txtErrorHeader" Padding="5 2 5 3" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="12" FontWeight="Bold" Foreground="#FFAA0000"></TextBlock>
                            <TextBlock Grid.Column="1" Name="txtErrorMessage" Padding="5 2 5 3" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="12" FontWeight="Normal" Foreground="#FFAA0000" TextWrapping="Wrap"></TextBlock>
                            <StackPanel  Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0 2 0 0">
                                <Button Name="btnErrorMoreInfo" DockPanel.Dock="Right" Click="btnErrorMoreInfo_Click" Style="{StaticResource ErrorButton}" Margin="0 0 2 0" ToolTip="Click for more info">Info</Button>
                                <Popup StaysOpen="False" Name="popErrorInfo" Placement="MousePoint" MaxWidth="500" AllowsTransparency="True" Focusable="False" >
                                    <Border BorderThickness="1" CornerRadius="3" BorderBrush="#FFAA0000" Background="#FFFFDBDB">
                                        <TextBlock Name="txtErrorMoreInfo" FontSize="12" FontWeight="Normal" Foreground="#FFAA0000" Margin="10" TextWrapping="Wrap"></TextBlock>
                                    </Border>
                                </Popup>
                                <Button Name="btnHideError" ToolTip="Close" DockPanel.Dock="Right" Click="btnErrorClose_Click" Style="{StaticResource ErrorButton}" Margin="0 0 2 0">
                                    <Path Stroke="#FF990000" StrokeThickness="2" Margin="2 2 1 1">
                                        <Path.Data>
                                            <PathGeometry>
                                                <PathGeometry.Figures>
                                                    <PathFigure StartPoint="0,0">
                                                        <LineSegment Point="8,8"/>
                                                    </PathFigure>
                                                    <PathFigure StartPoint="0,8">
                                                        <LineSegment Point="8,0"/>
                                                    </PathFigure>
                                                </PathGeometry.Figures>
                                            </PathGeometry>
                                        </Path.Data>
                                    </Path>
                                </Button>
                            </StackPanel>
                        </Grid>
                    </Border>
                    <Border Name="brdArchive" Grid.Row="1" Grid.ColumnSpan="2" BorderThickness="1" CornerRadius="5" Background="#3366CCFF" BorderBrush="#FF5787b6"  Margin="0 5 0 0" Visibility="Collapsed">
                        <DockPanel LastChildFill="False">
                            <TextBlock DockPanel.Dock="Left" Padding="5 2 5 3" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Foreground="#FF5787b6">Archived log for</TextBlock>
                            <TextBlock DockPanel.Dock="Left" Name="txtArchiveDate" Padding="0 2 5 3" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" FontWeight="Bold" Foreground="#FF003366"></TextBlock>
                            <TextBlock DockPanel.Dock="Right" Padding="10 1 5 4" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" Foreground="#FF5787b6"><Hyperlink Name="lnkArchiveName" FontSize="12" Foreground="#FF5787b6" ToolTip="Click to open the log file in your text file editor" RequestNavigate="OpenLogFileInOS"><TextBlock Name="txtArchiveName"></TextBlock></Hyperlink></TextBlock>
                        </DockPanel>
                    </Border>
                    <DockPanel Grid.Row="2" LastChildFill="False" Margin="0,5,0,0" Grid.RowSpan="2">
                        <Grid DockPanel.Dock="Top">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Border Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3" BorderThickness="0,0,0,1" BorderBrush="#FF5787b6" SnapsToDevicePixels="True">
                                <DockPanel LastChildFill="False">
                                    <TextBlock Name="lblCharacterName" Padding="4" FontSize="14" DockPanel.Dock="Left" Foreground="Black">Character</TextBlock>
                                    <RadioButton Name="rdoAllFights" GroupName="StatDomain" DockPanel.Dock="Right" Margin="6 0 0 0" Style="{StaticResource PlainRadio}">
                                        <TextBlock DockPanel.Dock="Right" Foreground="#FF666666" FontSize="10">All Fights</TextBlock>
                                    </RadioButton>
                                    <RadioButton Name="rdoThisFight" GroupName="StatDomain" DockPanel.Dock="Right" Margin="6 0 0 0" Style="{StaticResource PlainRadio}">
                                        <TextBlock DockPanel.Dock="Right" Foreground="#FF666666" FontSize="10">This Fight</TextBlock>
                                    </RadioButton>
                                </DockPanel>
                            </Border>
                            <TextBlock Grid.Row="1" Grid.Column="0" TextAlignment="Left" Style="{StaticResource MainWindowLabel}">Combat Time</TextBlock>
                            <TextBlock Grid.Row="1" Grid.Column="1" TextAlignment="Right" Grid.ColumnSpan="2" Style="{StaticResource MainWindowText}" Name="lblLengthValue"></TextBlock>
                            <TextBlock Grid.Row="2" Grid.Column="0" TextAlignment="Left" Background="#11000000" Style="{StaticResource MainWindowLabel}" ToolTip="Ability Activations Per Minute">APM</TextBlock>
                            <TextBlock Grid.Row="2" Grid.Column="1" TextAlignment="Right" Style="{StaticResource MainWindowText}" Grid.ColumnSpan="2" Background="#11000000" Name="lblApmValue"></TextBlock>
                            <TextBlock Grid.Row="3" Grid.Column="0" TextAlignment="Left" Style="{StaticResource MainWindowLabel}" ToolTip="Total Damage | DPS">Damage Dealt</TextBlock>
                            <TextBlock Grid.Row="3" Grid.Column="1" TextAlignment="Right" Style="{StaticResource MainWindowText}" Name="lblDamageOutValue" ToolTip="Total Damage"></TextBlock>
                            <TextBlock Grid.Row="3" Grid.Column="2" TextAlignment="Right" Style="{StaticResource MainWindowText}" Name="lblDamageOutPerSecValue" ToolTip="Damage Per Second"></TextBlock>
                            <TextBlock Grid.Row="4" Grid.Column="0" TextAlignment="Left" Background="#11000000" Style="{StaticResource MainWindowLabel}" Name="lblHealsOut" ToolTip="Total Healing | HPS">Healing Done</TextBlock>
                            <TextBlock Grid.Row="4" Grid.Column="1" TextAlignment="Right" Style="{StaticResource MainWindowText}" Background="#11000000" Name="lblHealsOutValue" ToolTip="Total Healing"></TextBlock>
                            <TextBlock Grid.Row="4" Grid.Column="2" TextAlignment="Right" Style="{StaticResource MainWindowText}" Background="#11000000" Name="lblHealsOutPerSecValue" ToolTip="Healing per Second"></TextBlock>
                            <TextBlock Grid.Row="5" Grid.Column="0" TextAlignment="Left" Style="{StaticResource MainWindowLabel}" Name="lblShield" ToolTip="Total Shielding | SPS">Shielding Done</TextBlock>
                            <TextBlock Grid.Row="5" Grid.Column="1" TextAlignment="Right" Style="{StaticResource MainWindowText}" Name="lblShieldValue" ToolTip="Total Shielding"></TextBlock>
                            <TextBlock Grid.Row="5" Grid.Column="2" TextAlignment="Right" Style="{StaticResource MainWindowText}" Name="lblShieldPerSecValue" ToolTip="Shielding Per Second"></TextBlock>
                            <TextBlock Grid.Row="6" Grid.Column="0" TextAlignment="Left" Background="#11000000" Style="{StaticResource MainWindowLabel}" Name="lblEffectHeal" ToolTip="Effective % | EHPS">Effective Healing</TextBlock>
                            <TextBlock Grid.Row="6" Grid.Column="1" TextAlignment="Right" Style="{StaticResource MainWindowText}" Background="#11000000" Name="lblEffectHealPctValue" ToolTip="Effective Heal %"></TextBlock>
                            <TextBlock Grid.Row="6" Grid.Column="2" TextAlignment="Right" Style="{StaticResource MainWindowText}" Background="#11000000" Name="lblEffectHealPerSecValue" ToolTip="Effective Healing Per Second"></TextBlock>
                            <TextBlock Grid.Row="7" Grid.Column="0" TextAlignment="Left" Style="{StaticResource MainWindowLabel}" Name="lblDamageTaken" ToolTip="Total Damage | DTPS">Damage Taken</TextBlock>
                            <TextBlock Grid.Row="7" Grid.Column="1" TextAlignment="Right" Style="{StaticResource MainWindowText}" Name="lblDamageTakenValue" ToolTip="Total Damage"></TextBlock>
                            <TextBlock Grid.Row="7" Grid.Column="2" TextAlignment="Right" Style="{StaticResource MainWindowText}" Name="lblDamageTakenPerSecValue" ToolTip="Damage Take Per Second"></TextBlock>
                            <TextBlock Grid.Row="8" Grid.Column="0" TextAlignment="Left" Style="{StaticResource MainWindowLabel}" Background="#11000000" Name="lblHealIn" ToolTip="Total Healing | HPS">Healing Received</TextBlock>
                            <TextBlock Grid.Row="8" Grid.Column="1" TextAlignment="Right" Style="{StaticResource MainWindowText}" Background="#11000000" Name="lblHealsInValue" ToolTip="Total Healing Received"></TextBlock>
                            <TextBlock Grid.Row="8" Grid.Column="2" TextAlignment="Right" Style="{StaticResource MainWindowText}" Background="#11000000" Name="lblHealsInPerSecValue" ToolTip="Healing Per Second Received"></TextBlock>
                            <TextBlock Grid.Row="9" Grid.Column="0" TextAlignment="Left" Style="{StaticResource MainWindowLabel}" Name="lblThreat" ToolTip="Total Threat (TPS)">Threat</TextBlock>
                            <TextBlock Grid.Row="9" Grid.Column="1" TextAlignment="Right" Style="{StaticResource MainWindowText}" Name="lblThreatValue" ToolTip="Total Threat"></TextBlock>
                            <TextBlock Grid.Row="9" Grid.Column="2" TextAlignment="Right" Style="{StaticResource MainWindowText}" Name="lblThreatPerSecValue" ToolTip="Threat Per Second"></TextBlock>
                        </Grid>
                        <Grid DockPanel.Dock="Top" Name="grdCompanion" Margin="0 12 0 0" Visibility="Collapsed">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                                <ColumnDefinition Width="*"></ColumnDefinition>
                            </Grid.ColumnDefinitions>
                            <Border Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3" BorderThickness="0,0,0,1" BorderBrush="#FF5787b6" SnapsToDevicePixels="True">
                                <TextBlock Padding="4" Name="txtCompanionName" FontSize="14">Companion</TextBlock>
                            </Border>
                            <TextBlock Grid.Row="1" Grid.Column="0" Background="#11000000" TextAlignment="Left" Padding="4" Foreground="#FF50504d" ToolTip="Total Damage | DPS">Damage Dealt</TextBlock>
                            <TextBlock Grid.Row="1" Grid.Column="1" Background="#11000000" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompDamageOutValue" ToolTip="Total Damage"></TextBlock>
                            <TextBlock Grid.Row="1" Grid.Column="2" Background="#11000000" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompDamageOutValue2" ToolTip="DPS"></TextBlock>
                            <TextBlock Grid.Row="2" Grid.Column="0" TextAlignment="Left" Padding="4" Foreground="#FF50504d" ToolTip="Total Healing | HPS">Healing Done</TextBlock>
                            <TextBlock Grid.Row="2" Grid.Column="1" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompHealsOutValue" ToolTip="Total Healing"></TextBlock>
                            <TextBlock Grid.Row="2" Grid.Column="2" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompHealsOutValue2" ToolTip="HPS"></TextBlock>
                            <TextBlock Grid.Row="3" Grid.Column="0" Background="#11000000" TextAlignment="Left" Padding="4" Foreground="#FF50504d" ToolTip="Effective Heal % | EHPS">Effective Healing</TextBlock>
                            <TextBlock Grid.Row="3" Grid.Column="1" Background="#11000000" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompHealsOutValue3" ToolTip="Effective Heal %"></TextBlock>
                            <TextBlock Grid.Row="3" Grid.Column="2" Background="#11000000" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompHealsOutValue4" ToolTip="EHPS"></TextBlock>
                            <TextBlock Grid.Row="4" Grid.Column="0" TextAlignment="Left" Padding="4" Foreground="#FF50504d" ToolTip="Total Damage (DPS)">Damage Taken</TextBlock>
                            <TextBlock Grid.Row="4" Grid.Column="1" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompDamageInValue" ToolTip="Total Damage"></TextBlock>
                            <TextBlock Grid.Row="4" Grid.Column="2" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompDamageInValue2" ToolTip="DPS"></TextBlock>
                            <TextBlock Grid.Row="5" Grid.Column="0" Background="#11000000" TextAlignment="Left" Padding="4" Foreground="#FF50504d" ToolTip="Total Healing | HPS">Healing Received</TextBlock>
                            <TextBlock Grid.Row="5" Grid.Column="1" Background="#11000000" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompHealsInValue" ToolTip="Total Healing Received"></TextBlock>
                            <TextBlock Grid.Row="5" Grid.Column="2" Background="#11000000" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompHealsInValue2" ToolTip="HPS Received"></TextBlock>
                            <TextBlock Grid.Row="6" Grid.Column="0" TextAlignment="Left" Padding="4" Foreground="#FF50504d" ToolTip="Total Threat (TPS)">Threat</TextBlock>
                            <TextBlock Grid.Row="6" Grid.Column="1" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompThreatValue" ToolTip="Total Threat"></TextBlock>
                            <TextBlock Grid.Row="6" Grid.Column="2" TextAlignment="Right" Padding="4" FontWeight="Bold" Name="lblCompThreatValue2" ToolTip="TPS"></TextBlock>
                        </Grid>
                    </DockPanel>
                    <Grid Grid.Row="2" Grid.Column="1" Margin="10,5,0,0" Grid.RowSpan="2">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"></ColumnDefinition>
                            <ColumnDefinition Width="Auto"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"></RowDefinition>
                            <RowDefinition Height="*"></RowDefinition>
                        </Grid.RowDefinitions>
                        <ComboBox Name="ddlFights" Grid.Row="0" Grid.Column="0" Margin="0 0 0 8" ItemsSource="{Binding}" SelectionChanged="ddlFights_SelectionChanged">
                            <ComboBox.ItemTemplate>
                                <DataTemplate>
                                    <TextBlock Name="fight" Text="{Binding Path=Name}">
                                        <TextBlock.Style>
                                            <Style TargetType="TextBlock">
                                                <Style.Triggers>
                                                    <DataTrigger Binding="{Binding Path=FightType}" Value="PVP">
                                                        <DataTrigger.Setters>
                                                            <Setter Property="Foreground" Value="#ffAA0000"/>
                                                        </DataTrigger.Setters>
                                                    </DataTrigger>
                                                    <DataTrigger Binding="{Binding Path=FightType}" Value="RAID">
                                                        <DataTrigger.Setters>
                                                            <Setter Property="Foreground" Value="#FF000000"/>
                                                            <Setter Property="FontWeight" Value="Bold"/>
                                                        </DataTrigger.Setters>
                                                    </DataTrigger>
                                                    <DataTrigger Binding="{Binding Path=FightType}" Value="NONE">
                                                        <DataTrigger.Setters>
                                                            <Setter Property="Foreground" Value="#FF444444"/>
                                                        </DataTrigger.Setters>
                                                    </DataTrigger>
                                                </Style.Triggers>
                                            </Style>
                                        </TextBlock.Style>
                                    </TextBlock>
                                </DataTemplate>
                            </ComboBox.ItemTemplate>
                        </ComboBox>
                        <TabControl Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Name="MyTabControl" SelectionChanged="MyTabControl_SelectionChanged" Style="{StaticResource PlainTabControl}">
                            <TabItem Header="Combat Log" Style="{StaticResource PlainTab}">
                                <DockPanel LastChildFill="True" >
                                    <StackPanel Margin="10 0 5 0" DockPanel.Dock="Right" Visibility="Visible" Name="pnlFilters" Width="130">
                                        <TextBlock FontSize="15" Margin="0 0 0 2">Filters</TextBlock>
                                        <CheckBox Name="chkShowAll" Checked="chkShowAll_Checked" Unchecked="chkShowAll_Unchecked" Style="{StaticResource PlainCheckBox}">Show All</CheckBox>
                                        <CheckBox Name="chkOutgoingDamage" IsEnabled="False" Style="{StaticResource PlainCheckBox}">Damage Outgoing</CheckBox>
                                        <CheckBox Name="chkIncomingDamage" IsEnabled="False" Style="{StaticResource PlainCheckBox}">Damage Incoming</CheckBox>
                                        <CheckBox Name="chkOutgoingHeals" IsEnabled="False" Style="{StaticResource PlainCheckBox}">Heals Outgoing</CheckBox>
                                        <CheckBox Name="chkIncomingHeals" IsEnabled="False" Style="{StaticResource PlainCheckBox}">Heals Incoming</CheckBox>
                                        <CheckBox Name="chkOthersEffects" IsEnabled="False" Style="{StaticResource PlainCheckBox}">Effects on Others</CheckBox>
                                        <CheckBox Name="chkCharactersEffects" IsEnabled="False" Style="{StaticResource PlainCheckBox}">Effects on you</CheckBox>
                                        <CheckBox Name="chkAbilities" IsEnabled="False" Style="{StaticResource PlainCheckBox}">Abilities</CheckBox>
                                        <CheckBox Name="chkEvents" IsEnabled="False" Style="{StaticResource PlainCheckBox}">Events</CheckBox>
                                        <TextBlock Margin="0 0 0 0">Filter by phrase</TextBlock>
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*"></ColumnDefinition>
                                                <ColumnDefinition Width="22"></ColumnDefinition>
                                            </Grid.ColumnDefinitions>
                                            <TextBox Name="txtKeyWord" KeyDown="txtKeyWord_KeyDown" Grid.Column="0" Style="{StaticResource PlainTextBox}"></TextBox>
                                            <Button Name="btnClearKeyWord" Margin="2 0 0 0" Grid.Column="1" Click="btnClearKeyWord_Click" Style="{StaticResource PlainButton}" Padding="1 0 1 2">x</Button>
                                        </Grid>
                                        <Button Name="btnApplyFilter" Click="btnApplyFilter_Click" Margin="0 2 0 0" Style="{StaticResource PlainButton}">Apply Filters</Button>
                                        <TextBlock FontSize="15" Margin="0 10 0 2">Find</TextBlock>
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*"></ColumnDefinition>
                                                <ColumnDefinition Width="22"></ColumnDefinition>
                                            </Grid.ColumnDefinitions>
                                            <TextBox Name="txtFindWord" KeyDown="txtFindWord_KeyDown" Style="{StaticResource PlainTextBox}"></TextBox>
                                            <Button Name="btnClearFindWord" Margin="2 0 0 0" Grid.Column="1" Click="btnClearFindWord_Click" Style="{StaticResource PlainButton}" Padding="1 0 1 2">x</Button>
                                        </Grid>
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*"></ColumnDefinition>
                                                <ColumnDefinition Width="30"></ColumnDefinition>
                                                <ColumnDefinition Width="30"></ColumnDefinition>
                                            </Grid.ColumnDefinitions>
                                            <Button Name="btnFind" Click="btnFind_Click" Margin="0 2 0 0" Style="{StaticResource PlainButton}" Grid.Column="0">Find</Button>
                                            <Button Name="btnFindNext" Click="btnFindNext_Click" Margin="3 2 0 0" Style="{StaticResource PlainButton}" Grid.Column="1">
                                                <Path x:Name="ArrowDown" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0 0 L 4 4 L 8 0 Z" Fill="#FF444444" Margin="0 6 0 4"></Path>
                                            </Button>
                                            <Button Name="btnFindPrevious" Click="btnFindPrevious_Click" Margin="3 2 0 0" Style="{StaticResource PlainButton}" Grid.Column="2">
                                                <Path x:Name="ArrowUp" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 4 0 L 0 4 L 8 4 Z" Fill="#FF444444"  Margin="0 6 0 4"></Path>
                                            </Button>
                                        </Grid>
                                    </StackPanel>
                                    <Button DockPanel.Dock="Right" Click="btnFilters_Click" Name="btnFilterExpand" ToolTip="Toggle combat log filters"  Style="{StaticResource FlatButton}" Visibility="Collapsed" Padding="4">
                                        <Path Margin="1 0 2 0" Fill="#FF444444" Data="M 0 5 L 5 0 L 5 10 Z" ></Path>
                                    </Button>
                                    <Button DockPanel.Dock="Right" Click="btnFilters_Click" Name="btnFilterCollapse" ToolTip="Toggle combat log filters" Style="{StaticResource FlatButton}" Padding="4">
                                        <Path Margin="2 0 1 0"  Fill="#FF444444" Data="M 0 10 L 5 5 L 0 0 Z"></Path>
                                    </Button>
                                    <UserControls:CombatLogAwesomeControl DockPanel.Dock="Left" x:Name="MyCombatLogControl"  Grid.Row="0" Grid.Column="0"></UserControls:CombatLogAwesomeControl>
                                </DockPanel>
                            </TabItem>
                            <TabItem Header="Damage Dealt" Style="{StaticResource PlainTab}">
                                <Grid Grid.IsSharedSizeScope="True">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                        <RowDefinition Height="Auto"/>
                                    </Grid.RowDefinitions>
                                    <Grid Grid.Row="0" Grid.Column="0">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="*"/>
                                        </Grid.RowDefinitions>
                                        <Label Grid.Column="0" Foreground="#FF222222" FontSize="11" DockPanel.Dock="Left" VerticalAlignment="Center">Targets:</Label>
                                        <ComboBox Grid.Column="1"  Name="ddlDamageOutTargets" Margin="5" HorizontalAlignment="Stretch" VerticalAlignment="Top" ItemsSource="{Binding}" SelectionChanged="ddlDamageOutTargets_SelectionChanged"/>
                                        <Label Grid.Column="2" Foreground="#FF222222" FontSize="11" VerticalAlignment="Center">View:</Label>
                                        <RadioButton Grid.Column="4" Name="rdoDamageOutExpanded" GroupName="DamageOutType" Margin="6 1 0 0" IsChecked="True" Checked="DamageOutTypeCheckChanged" Style="{StaticResource PlainRadio}" VerticalAlignment="Center">
                                            <TextBlock Foreground="#FF666666" FontSize="11">Advanced</TextBlock>
                                        </RadioButton>
                                        <RadioButton Grid.Column="3" Name="rdoDamageOutCollapsed" GroupName="DamageOutType" Margin="6 1 0 0" Checked="DamageOutTypeCheckChanged" Style="{StaticResource PlainRadio}" VerticalAlignment="Center">
                                            <TextBlock Foreground="#FF666666" FontSize="11" >Basic</TextBlock>
                                        </RadioButton>
                                    </Grid>
                                    <Border Grid.Row="1" BorderBrush="#FF5787b6" BorderThickness="0,0,0,1" Padding="5 5 5 4">
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="AbilityName"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityUses"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityNonCritAvg"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityCritAvg"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityCritPct"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityMissPct"/>
                                                <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="AbilityTotal"/>
                                                <ColumnDefinition Width="*" />
                                            </Grid.ColumnDefinitions>
                                            <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Attack</TextBlock>
                                            <TextBlock Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Number of Attacks/Ticks">#</TextBlock>
                                            <TextBlock Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Average Non Critical Hit">Avg</TextBlock>
                                            <TextBlock Grid.Column="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Average Critical Hit">Avg*</TextBlock>
                                            <TextBlock Grid.Column="4" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Percentage of Critical Hits">Crit %</TextBlock>
                                            <TextBlock Grid.Column="5" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Percentage of Misses or Resists (Main and Off Hand)">Miss %</TextBlock>
                                            <TextBlock Grid.Column="6" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Total</TextBlock>
                                            <TextBlock Grid.Column="7" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Percent of Total</TextBlock>
                                        </Grid>
                                    </Border>
                                    <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="2" Margin="0 5 0 0">
                                        <StackPanel>
                                            <ItemsControl Name="icDamageOutDetails" ItemsSource="{Binding}">
                                                <ItemsControl.ItemTemplate>
                                                    <DataTemplate>
                                                        <Grid Margin="5 0 5 5" Background="{Binding Path=DamageColor}" ToolTip="{Binding Path=DamageTypeName}">
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="AbilityName"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityUses"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityNonCritAvg"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityCritAvg"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityCritPct"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityMissPct"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="AbilityTotal"/>
                                                                <ColumnDefinition Width="*" />
                                                            </Grid.ColumnDefinitions>
                                                            <Grid.RowDefinitions>
                                                                <RowDefinition Height="Auto"/>
                                                                <RowDefinition Height="Auto"/>
                                                            </Grid.RowDefinitions>
                                                            <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                            <TextBlock Grid.Column="1" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=UseCount, StringFormat='{}{0:N0}'}"></TextBlock>
                                                            <TextBlock Grid.Column="2" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=AvgNonCrit, StringFormat='{}{0:N0}'}"></TextBlock>
                                                            <TextBlock Grid.Column="3" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=CritAvg, StringFormat='{}{0:N0}'}"></TextBlock>
                                                            <TextBlock Grid.Column="4" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=CritPct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                            <TextBlock Grid.Column="5" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=MissPct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                            <TextBlock Grid.Column="6" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Total, StringFormat='{}{0:N0}'}"></TextBlock>
                                                            <ProgressBar Minimum="0" Maximum="100" Value="{Binding Path=Pct}" Grid.Column="7" Height="25" VerticalAlignment="Center" Margin="5 0 0 0" Style="{StaticResource CustomProgressBar}"></ProgressBar>
                                                            <TextBlock Text="{Binding Path=Pct, StringFormat='{}{0:N1}'}" Grid.Column="7" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5 0 0 0"></TextBlock>
                                                            <ItemsControl Grid.Column="0" Grid.ColumnSpan="8" Grid.Row="1" ItemsSource="{Binding Path=Abilities}">
                                                                <ItemsControl.ItemTemplate>
                                                                    <DataTemplate>
                                                                        <Grid Margin="0 5 0 0" Background="{Binding Path=DamageColor}" ToolTip="{Binding Path=DamageTypeName}">
                                                                            <Grid.ColumnDefinitions>
                                                                                <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="AbilityName"/>
                                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityUses"/>
                                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityNonCritAvg"/>
                                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityCritAvg"/>
                                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityCritPct"/>
                                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityMissPct"/>
                                                                                <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="AbilityTotal"/>
                                                                                <ColumnDefinition Width="*" />
                                                                            </Grid.ColumnDefinitions>
                                                                            <Grid.RowDefinitions>
                                                                                <RowDefinition Height="Auto"/>
                                                                                <RowDefinition Height="Auto"/>
                                                                            </Grid.RowDefinitions>
                                                                            <TextBlock Grid.Column="0" Margin="10 0 0 0"  Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                                            <TextBlock Grid.Column="1" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=UseCount, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                            <TextBlock Grid.Column="2" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=AvgNonCrit, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                            <TextBlock Grid.Column="3" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=CritAvg, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                            <TextBlock Grid.Column="4" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=CritPct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                                            <TextBlock Grid.Column="5" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=MissPct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                                            <TextBlock Grid.Column="6" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Total, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                            <ProgressBar Minimum="0" Maximum="100" Value="{Binding Path=Pct}" Grid.Column="7" Height="25" VerticalAlignment="Center" Margin="5 0 0 0" Style="{StaticResource CustomSubProgressBar}"></ProgressBar>
                                                                            <TextBlock Text="{Binding Path=Pct, StringFormat='{}{0:N1}'}" Grid.Column="7" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5 0 0 0"></TextBlock>
                                                                        </Grid>
                                                                    </DataTemplate>
                                                                </ItemsControl.ItemTemplate>
                                                            </ItemsControl>
                                                        </Grid>
                                                    </DataTemplate>
                                                </ItemsControl.ItemTemplate>
                                            </ItemsControl>
                                            <Border BorderThickness="0 1 0 0" CornerRadius="0" BorderBrush="#FF5787b6" Margin="0 0 0 0" Padding="5 2 5 3">
                                                <Grid>
                                                    <Grid.ColumnDefinitions>
                                                        <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="AbilityName"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityUses"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityNonCritAvg"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityCritAvg"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityCritPct"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="AbilityMissPct"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="AbilityTotal"/>
                                                        <ColumnDefinition Width="*" />
                                                    </Grid.ColumnDefinitions>
                                                    <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="Total" FontWeight="Bold"></TextBlock>
                                                        <TextBlock Name="lblTotalDmgOutUses" Grid.Column="1" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold"></TextBlock>
                                                        <TextBlock Name="lblTotalDmgOutCrits" Grid.Column="4" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold"></TextBlock>
                                                        <TextBlock Name="lblTotalDmgOutMisses" Grid.Column="5" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold"></TextBlock>
                                                    <TextBlock Name="lblTotalDmgOut" Grid.Column="6" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold"></TextBlock>
                                                </Grid>
                                            </Border>
                                        </StackPanel>
                                    </ScrollViewer>
                                </Grid>
                            </TabItem>
                            <TabItem Header="Healing Done" Style="{StaticResource PlainTab}">
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <Border Grid.Row="0" BorderThickness="1" CornerRadius="5" Background="#33DDEEFF" BorderBrush="#FF666666" HorizontalAlignment="Left" Margin="5">
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12">Shielding</TextBlock>
                                            <TextBlock Name="txtAbsorbCast" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12">0 (0 per min)</TextBlock>
                                            <TextBlock Name="txtShieldHealing" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12"></TextBlock>
                                            <TextBlock Name="txtShieldMessage" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12" Visibility="Collapsed">Go to File > Character Settings to setup your Shield Value for this character</TextBlock>
                                        </StackPanel>
                                    </Border>
                                    <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1">
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*"/>
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="*"/>
                                            </Grid.RowDefinitions>
                                            <Grid Grid.IsSharedSizeScope="True" Grid.Row="0">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="*"/>
                                                </Grid.ColumnDefinitions>
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="Auto"/>
                                                    <RowDefinition Height="*"/>
                                                </Grid.RowDefinitions>
                                                <Border Grid.Row="0" BorderBrush="#FF5787b6" BorderThickness="0 0 0 1" Padding="5 5 5 4">
                                                    <Grid>
                                                        <Grid.ColumnDefinitions>
                                                            <ColumnDefinition Width="Auto" MinWidth="110" SharedSizeGroup="HAbilityName"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="30" SharedSizeGroup="HAbilityUses"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="44" SharedSizeGroup="HAbilityNonCritAvg"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="44" SharedSizeGroup="HAbilityCritAvg"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="30" SharedSizeGroup="HAbilityCritPct"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="34" SharedSizeGroup="HAbilityEffect"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="54" SharedSizeGroup="HAbilityTotal"/>
                                                            <ColumnDefinition Width="*" />
                                                        </Grid.ColumnDefinitions>
                                                        <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Heal</TextBlock>
                                                        <TextBlock Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Number of Heals/Ticks">#</TextBlock>
                                                        <TextBlock Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Average Non Critical Heal">Avg</TextBlock>
                                                        <TextBlock Grid.Column="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Average Critical Heal">Avg*</TextBlock>
                                                        <TextBlock Grid.Column="4" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Percentage of Critical Heals">Crit%</TextBlock>
                                                        <TextBlock Grid.Column="5" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Effective Heal Percentage">Eff%</TextBlock>
                                                        <TextBlock Grid.Column="6" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Total</TextBlock>
                                                        <TextBlock Grid.Column="7" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" MinWidth="40" TextWrapping="Wrap" TextAlignment="Center">Percent of Total</TextBlock>
                                                    </Grid>
                                                </Border>
                                                <ItemsControl Name="icHealOutDetails" ItemsSource="{Binding}" Grid.Row="1" Margin="0 5 0 0">
                                                    <ItemsControl.ItemTemplate>
                                                        <DataTemplate>
                                                            <Grid Margin="5 0 5 5">
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="HAbilityName"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="30" SharedSizeGroup="HAbilityUses"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="44" SharedSizeGroup="HAbilityNonCritAvg"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="44" SharedSizeGroup="HAbilityCritAvg"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="30" SharedSizeGroup="HAbilityCritPct"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="34" SharedSizeGroup="HAbilityEffect"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="54" SharedSizeGroup="HAbilityTotal"/>
                                                                    <ColumnDefinition Width="*" />
                                                                </Grid.ColumnDefinitions>
                                                                <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                                <TextBlock Grid.Column="1" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=UseCount, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="2" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=AvgNonCrit, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="3" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=CritAvg, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="4" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=CritPct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                                <TextBlock Grid.Column="5" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=EffectivePct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                                <TextBlock Grid.Column="6" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Total, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <ProgressBar Minimum="0" Maximum="100" Value="{Binding Path=Pct}" Grid.Column="7" Height="25" VerticalAlignment="Center" Margin="5 0 0 0" Style="{StaticResource CustomProgressBar}"></ProgressBar>
                                                                <TextBlock Text="{Binding Path=Pct, StringFormat='{}{0:N1}'}" Grid.Column="7" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5 0 0 0"></TextBlock>
                                                            </Grid>
                                                        </DataTemplate>
                                                    </ItemsControl.ItemTemplate>
                                                </ItemsControl>
                                            </Grid>
                                            <Grid Grid.IsSharedSizeScope="True" Grid.Row="1" Margin="0 10 0 0">
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="*"/>
                                                </Grid.ColumnDefinitions>
                                                <Grid.RowDefinitions>
                                                    <RowDefinition Height="Auto"/>
                                                    <RowDefinition Height="*"/>
                                                </Grid.RowDefinitions>
                                                <Border Grid.Row="0" BorderBrush="#FF5787b6" BorderThickness="0 0 0 1" Padding="5 5 5 4">
                                                    <Grid>
                                                        <Grid.ColumnDefinitions>
                                                            <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="HealOutTargetName"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealOutTargetCount"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealOutTargetHps"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealOutTargetEhps"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealOutTargetPct"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealOutReceiveTotal"/>
                                                            <ColumnDefinition Width="*" />
                                                        </Grid.ColumnDefinitions>
                                                        <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Target</TextBlock>
                                                        <TextBlock Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Number of Heals/Ticks Received">#</TextBlock>
                                                        <TextBlock Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Healing Done Per Second">HPS</TextBlock>
                                                        <TextBlock Grid.Column="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Effective Heals Per Second">EHPS</TextBlock>
                                                        <TextBlock Grid.Column="4" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Effective Percent">%</TextBlock>
                                                        <TextBlock Grid.Column="5" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Total</TextBlock>
                                                        <TextBlock Grid.Column="6" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Percent of Total</TextBlock>
                                                    </Grid>
                                                </Border>
                                                <ItemsControl Name="icHealOutByTarget" ItemsSource="{Binding}" Grid.Row="1" Margin="0 5 0 0">
                                                    <ItemsControl.ItemTemplate>
                                                        <DataTemplate>
                                                            <Grid Margin="5 0 5 10">
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="HealOutTargetName"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealOutTargetCount"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealOutTargetHps"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealOutTargetEhps"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealOutTargetPct"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealOutTargetTotal"/>
                                                                    <ColumnDefinition Width="*" />
                                                                </Grid.ColumnDefinitions>
                                                                <Grid.RowDefinitions>
                                                                    <RowDefinition Height="Auto"/>
                                                                </Grid.RowDefinitions>
                                                                <TextBlock Grid.Column="0" Grid.Row="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                                <TextBlock Grid.Column="1" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=UseCount, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="2" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=HpsOut, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="3" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=EhpsOut, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="4" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=EffectivePct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                                <TextBlock Grid.Column="5" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Total, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <ProgressBar Grid.Column="6" Grid.Row="0" VerticalAlignment="Center" Minimum="0" Maximum="100" Value="{Binding Path=Pct}" Height="25" Margin="5 0 0 0" Style="{StaticResource CustomProgressBar}"></ProgressBar>
                                                                <TextBlock Grid.Column="6" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=Pct, StringFormat='{}{0:N1}'}" Margin="5 0 0 0"></TextBlock>
                                                            </Grid>
                                                        </DataTemplate>
                                                    </ItemsControl.ItemTemplate>
                                                </ItemsControl>
                                            </Grid>
                                        </Grid>
                                    </ScrollViewer>
                                </Grid>
                            </TabItem>
                            <TabItem Header="Damage Taken" Style="{StaticResource PlainTab}">
                                <Grid Grid.IsSharedSizeScope="True">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <WrapPanel Orientation="Horizontal" Grid.Row="0" Margin="0 0 5 0" >
                                        <Border Margin="5 5 0 0" BorderThickness="1" CornerRadius="5" Background="#33FF0000" BorderBrush="#FF666666">
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12">Internal</TextBlock>
                                                <TextBlock Name="txtInternalDamageIn" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12">0%</TextBlock>
                                            </StackPanel>
                                        </Border>
                                        <Border Margin="5 5 0 0"  BorderThickness="1" CornerRadius="5" Background="#33FF9900" BorderBrush="#FF666666">
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12">Elemental</TextBlock>
                                                <TextBlock Name="txtElementalDamageIn" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12">0%</TextBlock>
                                            </StackPanel>
                                        </Border>
                                        <Border Margin="5 5 0 0" BorderThickness="1" CornerRadius="5" Background="#330099FF" BorderBrush="#FF666666">
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12">Energy</TextBlock>
                                                <TextBlock Name="txtEnergyDamageIn" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12">0%</TextBlock>
                                            </StackPanel>
                                        </Border>
                                        <Border Margin="5 5 0 0" BorderThickness="1" CornerRadius="5" Background="#33AA0099" BorderBrush="#FF666666">
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12">Kinetic</TextBlock>
                                                <TextBlock Name="txtKineticDamageIn" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12">0%</TextBlock>
                                            </StackPanel>
                                        </Border>
                                        <Border Margin="5 5 0 0" BorderThickness="1" CornerRadius="5" Background="#FFFFFFFF" BorderBrush="#FF666666">
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" ToolTip="Percentage of attacks that were completely avoided">Defense/Resist</TextBlock>
                                                <TextBlock Name="txtDefenseIn" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12">0%</TextBlock>
                                            </StackPanel>
                                        </Border>
                                        <Border Margin="5 5 0 0" BorderThickness="1" CornerRadius="5" Background="#FFFFFFFF" BorderBrush="#FF666666">
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" ToolTip="Percentage of attacks that were partially shielded">Shield</TextBlock>
                                                <TextBlock Name="txtShieldIn" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12">0%</TextBlock>
                                            </StackPanel>
                                        </Border>
                                        <Border Margin="5 5 0 0" BorderThickness="1" CornerRadius="5" Background="#FFFFFFFF" BorderBrush="#FF666666">
                                            <StackPanel Orientation="Horizontal">
                                                <TextBlock Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12" ToolTip="Percentage of damage that was absorbed and absorbed damage per second">Absorbed</TextBlock>
                                                <TextBlock Name="txtAbsorbIn" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12">0%</TextBlock>
                                                <TextBlock Name="txtAbsorbPerSec" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12">0.0</TextBlock>
                                            </StackPanel>
                                        </Border>
                                    </WrapPanel>
                                    <Border Grid.Row="1" BorderBrush="#FF5787b6" BorderThickness="0 0 0 1" Padding="5 5 5 4">
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" MinWidth="110" SharedSizeGroup="DamageTakenName"/>
                                                <ColumnDefinition Width="Auto" MinWidth="30" SharedSizeGroup="DamageTakenCount"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenDefense"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenShield"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenDps"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenAvg"/>
                                                <ColumnDefinition Width="Auto" MinWidth="30" SharedSizeGroup="DamageTakenHpa"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenAbs"/>
                                                <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="DamageTakenTotal"/>
                                                <ColumnDefinition Width="*" />
                                            </Grid.ColumnDefinitions>
                                            <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Attacker/Attack</TextBlock>
                                            <TextBlock Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Number of Attacks/Ticks">#</TextBlock>
                                            <TextBlock Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" Width="40" TextWrapping="Wrap"  ToolTip="Defense/Resist Percentage" TextAlignment="Right">Def. / Resist</TextBlock>
                                            <TextBlock Grid.Column="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Shield Percentage">Shield</TextBlock>
                                            <TextBlock Grid.Column="4" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Damage In Per Second">Dps</TextBlock>
                                            <TextBlock Grid.Column="5" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Average Damage Amount">Avg</TextBlock>
                                            <TextBlock Grid.Column="6" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Hits Per Attack">HPA</TextBlock>
                                            <TextBlock Grid.Column="7" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Damage Absorbed by Barriers (Not by Shield)">Abs</TextBlock>
                                            <TextBlock Grid.Column="8" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Total</TextBlock>
                                            <TextBlock Grid.Column="9" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Percent of Total</TextBlock>
                                        </Grid>
                                    </Border>
                                    <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="2" Margin="0 5 0 0">
                                        <ItemsControl Name="icDamageInDetails" ItemsSource="{Binding}">
                                            <ItemsControl.ItemTemplate>
                                                <DataTemplate>
                                                    <Grid Margin="5 0 5 10">
                                                        <Grid.ColumnDefinitions>
                                                            <ColumnDefinition Width="Auto" MinWidth="110" SharedSizeGroup="DamageTakenName"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="30" SharedSizeGroup="DamageTakenCount"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenDefense"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenShield"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenDps"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenAvg"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="30" SharedSizeGroup="DamageTakenHpa"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenAbs"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="DamageTakenTotal"/>
                                                            <ColumnDefinition Width="*" />
                                                        </Grid.ColumnDefinitions>
                                                        <Grid.RowDefinitions>
                                                            <RowDefinition Height="Auto"/>
                                                            <RowDefinition Height="Auto"/>
                                                        </Grid.RowDefinitions>
                                                        <TextBlock Grid.Column="0" Grid.Row="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                        <TextBlock Grid.Column="1" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=UseCount, StringFormat='{}{0:N0}'}"></TextBlock>
                                                        <TextBlock Grid.Column="2" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=DefensePct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                        <TextBlock Grid.Column="3" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=ShieldPct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                        <TextBlock Grid.Column="4" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=DpsIn, StringFormat='{}{0:N0}'}"></TextBlock>
                                                        <TextBlock Grid.Column="5" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text=""></TextBlock>
                                                        <TextBlock Grid.Column="6" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text=""></TextBlock>
                                                        <TextBlock Grid.Column="7" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=AbsorbedTotal, StringFormat='{}{0:N0}'}"></TextBlock>
                                                        <TextBlock Grid.Column="8" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Total, StringFormat='{}{0:N0}'}" ToolTip="{Binding Path=DamageTypeString}"></TextBlock>
                                                        <ProgressBar Grid.Column="9" Grid.Row="0" VerticalAlignment="Center" Minimum="0" Maximum="100" Value="{Binding Path=Pct}" Height="25" Margin="5 0 0 0" Style="{StaticResource CustomProgressBar}"></ProgressBar>
                                                        <TextBlock Grid.Column="9" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=Pct, StringFormat='{}{0:N1}'}" Margin="5 0 0 0"></TextBlock>
                                                        <ItemsControl Grid.Column="0" Grid.ColumnSpan="10" Grid.Row="1" ItemsSource="{Binding Path=Abilities}">
                                                            <ItemsControl.ItemTemplate>
                                                                <DataTemplate>
                                                                    <Grid Margin="0 5 0 0" Background="{Binding Path=DamageColor}" ToolTip="{Binding Path=DamageTypeName}">
                                                                        <Grid.ColumnDefinitions>
                                                                            <ColumnDefinition Width="Auto" MinWidth="110" SharedSizeGroup="DamageTakenName"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="30" SharedSizeGroup="DamageTakenCount"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenDefense"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenShield"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenDps"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenAvg"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="30" SharedSizeGroup="DamageTakenHpa"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="DamageTakenAbs"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="DamageTakenTotal"/>
                                                                            <ColumnDefinition Width="*" />
                                                                        </Grid.ColumnDefinitions>
                                                                        <Grid.RowDefinitions>
                                                                            <RowDefinition Height="Auto"/>
                                                                            <RowDefinition Height="Auto"/>
                                                                        </Grid.RowDefinitions>
                                                                        <TextBlock Grid.Column="0" Margin="20 0 0 0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                                        <TextBlock Grid.Column="1" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=UseCount, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                        <TextBlock Grid.Column="2" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=DefensePct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                                        <TextBlock Grid.Column="3" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=ShieldPct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                                        <TextBlock Grid.Column="4" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text=""></TextBlock>
                                                                        <TextBlock Grid.Column="5" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Avg, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                        <TextBlock Grid.Column="6" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=HitsPerAttack, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                        <TextBlock Grid.Column="7" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=AbsorbedTotal, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                        <TextBlock Grid.Column="8" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Total, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                        <ProgressBar Grid.Column="9" Minimum="0" Maximum="100" Value="{Binding Path=Pct}" Height="25" VerticalAlignment="Center" Margin="5 0 0 0" Style="{StaticResource CustomSubProgressBar}"></ProgressBar>
                                                                        <TextBlock Grid.Column="9" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=Pct, StringFormat='{}{0:N1}'}" Margin="5 0 0 0" ></TextBlock>
                                                                    </Grid>
                                                                </DataTemplate>
                                                            </ItemsControl.ItemTemplate>
                                                        </ItemsControl>
                                                    </Grid>
                                                </DataTemplate>
                                            </ItemsControl.ItemTemplate>
                                        </ItemsControl>
                                    </ScrollViewer>
                                </Grid>
                            </TabItem>
                            <TabItem Header="Heals Received" Style="{StaticResource PlainTab}">
                                <Grid Grid.IsSharedSizeScope="True">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <Border Grid.Row="0" BorderBrush="#FF5787b6" BorderThickness="0 0 0 1" Padding="5 5 5 4">
                                        <Grid>
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="HealReceiveName"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveCount"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveHps"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveAvg"/>
                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveTotal"/>
                                                <ColumnDefinition Width="*" />
                                            </Grid.ColumnDefinitions>
                                            <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Healer/Ability</TextBlock>
                                            <TextBlock Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Number of Heals/Ticks Received">#</TextBlock>
                                            <TextBlock Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Healing Done Per Second">HPS</TextBlock>
                                            <TextBlock Grid.Column="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Average Heal Amount">Avg</TextBlock>
                                            <TextBlock Grid.Column="4" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Total</TextBlock>
                                            <TextBlock Grid.Column="5" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Percent of Total</TextBlock>
                                        </Grid>
                                    </Border>
                                    <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1" Margin="0 5 0 0">
                                        <ItemsControl Name="icHealInDetails" ItemsSource="{Binding}">
                                            <ItemsControl.ItemTemplate>
                                                <DataTemplate>
                                                    <Grid Margin="5 0 5 10">
                                                        <Grid.ColumnDefinitions>
                                                            <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="HealReceiveName"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveCount"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveHps"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveAvg"/>
                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveTotal"/>
                                                            <ColumnDefinition Width="*" />
                                                        </Grid.ColumnDefinitions>
                                                        <Grid.RowDefinitions>
                                                            <RowDefinition Height="Auto"/>
                                                            <RowDefinition Height="Auto"/>
                                                        </Grid.RowDefinitions>
                                                        <TextBlock Grid.Column="0" Grid.Row="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                        <TextBlock Grid.Column="1" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=UseCount, StringFormat='{}{0:N0}'}"></TextBlock>
                                                        <TextBlock Grid.Column="2" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=HpsIn, StringFormat='{}{0:N0}'}"></TextBlock>
                                                        <TextBlock Grid.Column="3" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text=""></TextBlock>
                                                        <TextBlock Grid.Column="4" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Total, StringFormat='{}{0:N0}'}"></TextBlock>
                                                        <ProgressBar Grid.Column="5" Grid.Row="0" VerticalAlignment="Center" Minimum="0" Maximum="100" Value="{Binding Path=Pct}" Height="25" Margin="5 0 0 0" Style="{StaticResource CustomProgressBar}"></ProgressBar>
                                                        <TextBlock Grid.Column="5" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=Pct, StringFormat='{}{0:N1}'}" Margin="5 0 0 0"></TextBlock>
                                                        <ItemsControl Grid.Column="0" Grid.ColumnSpan="6" Grid.Row="1" ItemsSource="{Binding Path=Abilities}">
                                                            <ItemsControl.ItemTemplate>
                                                                <DataTemplate>
                                                                    <Grid Margin="0 5 0 0">
                                                                        <Grid.ColumnDefinitions>
                                                                            <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="HealReceiveName"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveCount"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveHps"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveAvg"/>
                                                                            <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="HealReceiveTotal"/>
                                                                            <ColumnDefinition Width="*" />
                                                                        </Grid.ColumnDefinitions>
                                                                        <Grid.RowDefinitions>
                                                                            <RowDefinition Height="Auto"/>
                                                                            <RowDefinition Height="Auto"/>
                                                                        </Grid.RowDefinitions>
                                                                        <TextBlock Grid.Column="0" Grid.Row="0" Margin="20 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                                        <TextBlock Grid.Column="1" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=UseCount, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                        <TextBlock Grid.Column="2" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center"></TextBlock>
                                                                        <TextBlock Grid.Column="3" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Avg, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                        <TextBlock Grid.Column="4" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Total, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                        <ProgressBar Grid.Column="5" Grid.Row="0" VerticalAlignment="Center" Minimum="0" Maximum="100" Value="{Binding Path=Pct}" Height="25" Margin="5 0 0 0" Style="{StaticResource CustomSubProgressBar}"></ProgressBar>
                                                                        <TextBlock Grid.Column="5" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=Pct, StringFormat='{}{0:N1}'}" Margin="5 0 0 0"></TextBlock>
                                                                    </Grid>
                                                                </DataTemplate>
                                                            </ItemsControl.ItemTemplate>
                                                        </ItemsControl>
                                                    </Grid>
                                                </DataTemplate>
                                            </ItemsControl.ItemTemplate>
                                        </ItemsControl>
                                    </ScrollViewer>
                                </Grid>
                            </TabItem>
                            <TabItem Header="Threat" Style="{StaticResource PlainTab}">
                                <Grid Grid.IsSharedSizeScope="True">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="Auto"/>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <Border Grid.Row="0" BorderThickness="1" CornerRadius="5" Background="#3366FF00" BorderBrush="#FF666666" HorizontalAlignment="Left" Margin="5">
                                        <StackPanel Orientation="Horizontal">
                                            <TextBlock Padding="5" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="12">Heal Threat (TPS) Applied to All Enemies</TextBlock>
                                            <TextBlock Name="txtHealThreat" Padding="5" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="12">0 (0)</TextBlock>
                                        </StackPanel>
                                    </Border>
                                    <StackPanel Grid.Row="0" Grid.Column="1" HorizontalAlignment="Right" Orientation="Horizontal" VerticalAlignment="Center">
                                        <Label Foreground="#FF222222" FontSize="11">View:</Label>
                                        <RadioButton Name="rdoThreatAbilities" GroupName="ThreatType" Margin="2 0 0 0" IsChecked="True" Checked="ThreatTypeCheckChanged" Style="{StaticResource PlainRadio}">
                                            <TextBlock Foreground="#FF666666" FontSize="11">Abilities</TextBlock>
                                        </RadioButton>
                                        <RadioButton Name="rdoThreatTargets" GroupName="ThreatType" Margin="4 0 0 0" Checked="ThreatTypeCheckChanged" Style="{StaticResource PlainRadio}">
                                            <TextBlock Foreground="#FF666666" FontSize="11" >Targets</TextBlock>
                                        </RadioButton>
                                    </StackPanel>
                                    <Grid Name="grdThreatList" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="*"/>
                                        </Grid.RowDefinitions>
                                        <Border Grid.Row="0" BorderBrush="#FF5787b6" BorderThickness="0 0 0 1" Padding="5 5 5 4">
                                            <Grid>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="ThreatTargetName"/>
                                                    <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="ThreatAmount"/>
                                                    <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="TpsAmount"/>
                                                    <ColumnDefinition Width="*" />
                                                </Grid.ColumnDefinitions>
                                                <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Target</TextBlock>
                                                <TextBlock Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Total</TextBlock>
                                                <TextBlock Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Threat Per Second">TPS</TextBlock>
                                                <TextBlock Grid.Column="3" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Percent of Total</TextBlock>
                                            </Grid>
                                        </Border>
                                        <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1" Margin="0 5 0 0">
                                            <ItemsControl Name="icThreatDetails" ItemsSource="{Binding}">
                                                <ItemsControl.ItemTemplate>
                                                    <DataTemplate>
                                                        <Grid Margin="10 0 10 10">
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="ThreatTargetName"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="ThreatAmount"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="TpsAmount"/>
                                                                <ColumnDefinition Width="*" />
                                                            </Grid.ColumnDefinitions>
                                                            <Grid.RowDefinitions>
                                                                <RowDefinition Height="Auto"/>
                                                                <RowDefinition Height="Auto"/>
                                                            </Grid.RowDefinitions>
                                                            <TextBlock Grid.Column="0" Grid.Row="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                            <TextBlock Grid.Column="1" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Threat, StringFormat='{}{0:N0}'}"></TextBlock>
                                                            <TextBlock Grid.Column="2" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Tps, StringFormat='{}{0:N0}'}"></TextBlock>
                                                            <ProgressBar Grid.Column="3" Grid.Row="0" VerticalAlignment="Center" Minimum="0" Maximum="100" Value="{Binding Path=Pct}" Height="25" Margin="5 0 0 0" Style="{StaticResource CustomProgressBar}"></ProgressBar>
                                                            <TextBlock Grid.Column="3" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Text="{Binding Path=Pct, StringFormat='{}{0:N1}'}" Margin="5 0 0 0"></TextBlock>
                                                        </Grid>
                                                    </DataTemplate>
                                                </ItemsControl.ItemTemplate>
                                            </ItemsControl>
                                        </ScrollViewer>

                                    </Grid>
                                    <Grid Name="grdThreatAbilities" Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Visibility="Collapsed">
                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="*"/>
                                        </Grid.ColumnDefinitions>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="*"/>
                                        </Grid.RowDefinitions>
                                        <Border Grid.Row="0" BorderBrush="#FF5787b6" BorderThickness="0,0,0,1" Padding="5 5 5 4">
                                            <Grid>
                                                <Grid.ColumnDefinitions>
                                                    <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="ThreatAbilityName"/>
                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="ThreatAbilityUses"/>
                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="ThreatAbilityNonCritAvg"/>
                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="ThreatAbilityCritAvg"/>
                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="ThreatAbilityCritPct"/>
                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="ThreatAbilityMissPct"/>
                                                    <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="ThreatAbilityTotal"/>
                                                    <ColumnDefinition Width="*" />
                                                </Grid.ColumnDefinitions>
                                                <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Attack</TextBlock>
                                                <TextBlock Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Number of Attacks/Ticks">#</TextBlock>
                                                <TextBlock Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Average Non Critical Threat">Avg</TextBlock>
                                                <TextBlock Grid.Column="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Average Critical Threat">Avg*</TextBlock>
                                                <TextBlock Grid.Column="4" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Percentage of Critical Hits">Crit %</TextBlock>
                                                <TextBlock Grid.Column="5" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" ToolTip="Percentage of Misses or Resists (Main and Off Hand)">Miss %</TextBlock>
                                                <TextBlock Grid.Column="6" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Total</TextBlock>
                                                <TextBlock Grid.Column="7" HorizontalAlignment="Center" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Percent of Total</TextBlock>
                                            </Grid>
                                        </Border>
                                        <ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1" Margin="0 5 0 0">
                                            <ItemsControl Name="icThreatAbilities" ItemsSource="{Binding}">
                                                <ItemsControl.ItemTemplate>
                                                    <DataTemplate>
                                                        <Grid Margin="5 0 5 5" Background="{Binding Path=DamageColor}" ToolTip="{Binding Path=DamageTypeName}">
                                                            <Grid.ColumnDefinitions>
                                                                <ColumnDefinition Width="Auto" MinWidth="120" SharedSizeGroup="ThreatAbilityName"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="ThreatAbilityUses"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="ThreatAbilityNonCritAvg"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="ThreatAbilityCritAvg"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="ThreatAbilityCritPct"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="ThreatAbilityMissPct"/>
                                                                <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="ThreatAbilityTotal"/>
                                                                <ColumnDefinition Width="*" />
                                                            </Grid.ColumnDefinitions>
                                                            <Grid.RowDefinitions>
                                                                <RowDefinition Height="Auto"/>
                                                                <RowDefinition Height="Auto"/>
                                                            </Grid.RowDefinitions>
                                                            <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                            <TextBlock Grid.Column="1" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=UseCount, StringFormat='{}{0:N0}'}"></TextBlock>
                                                            <TextBlock Grid.Column="2" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=AvgNonCrit, StringFormat='{}{0:N0}'}"></TextBlock>
                                                            <TextBlock Grid.Column="3" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=CritAvg, StringFormat='{}{0:N0}'}"></TextBlock>
                                                            <TextBlock Grid.Column="4" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=CritPct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                            <TextBlock Grid.Column="5" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=MissPct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                            <TextBlock Grid.Column="6" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Total, StringFormat='{}{0:N0}'}"></TextBlock>
                                                            <ProgressBar Minimum="0" Maximum="100" Value="{Binding Path=Pct}" Grid.Column="7" Height="25" VerticalAlignment="Center" Margin="5 0 0 0" Style="{StaticResource CustomProgressBar}"></ProgressBar>
                                                            <TextBlock Text="{Binding Path=Pct, StringFormat='{}{0:N1}'}" Grid.Column="7" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="5 0 0 0"></TextBlock>
                                                        </Grid>
                                                    </DataTemplate>
                                                </ItemsControl.ItemTemplate>
                                            </ItemsControl>
                                        </ScrollViewer>
                                    </Grid>
                                </Grid>
                            </TabItem>
                            <TabItem Header="Raid" Style="{StaticResource PlainTab}">
                                <Grid>
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="*"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="Auto"/>
                                        <RowDefinition Height="*"/>
                                    </Grid.RowDefinitions>
                                    <DockPanel Grid.Row="0" LastChildFill="False">
                                        <Border Grid.Row="0" BorderThickness="1" CornerRadius="5" Background="#ffffff" BorderBrush="#FF5787b6" HorizontalAlignment="Left"  DockPanel.Dock="Left" Margin="5">
                                            <StackPanel>
                                                <DockPanel>
                                                    <TextBlock Name="txtRaidGroup" DockPanel.Dock="Left" Padding="8 3 8 4" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="14" >Raid Group...</TextBlock>
                                                    <Button Name="btnRefreshRaid" DockPanel.Dock="Right" Margin="2" Click="btnRefreshRaid_Click" IsEnabled="False" FontSize="15" Padding="0" Width="21" Height="21" HorizontalAlignment="Right" VerticalAlignment="Center" Style="{StaticResource PlainButton}">
                                                        <Grid>
                                                            <Ellipse Height="13" Width="13" Grid.Column="0" VerticalAlignment="Center" Margin="0,0,0,0">
                                                                <Ellipse.Stroke>
                                                                    <LinearGradientBrush EndPoint="0.5,.9" StartPoint="0.2,0">
                                                                        <GradientStop Color="#FF444444" Offset="0"/>
                                                                        <GradientStop Color="#00444444" Offset="1"/>
                                                                    </LinearGradientBrush>
                                                                </Ellipse.Stroke>
                                                            </Ellipse>
                                                            <Path HorizontalAlignment="Center" VerticalAlignment="Center" Data="M 0 0 L 3 3 L 6 0 Z" Fill="#FF444444" Margin="11,5,0,5" RenderTransformOrigin="1.042,0.333"></Path>
                                                        </Grid>
                                                        <Button.ToolTip>
                                                            <ToolTip FontFamily="Segoe UI">Refresh Names</ToolTip>
                                                        </Button.ToolTip>
                                                    </Button>
                                                </DockPanel>
                                                <TextBlock Name="txtRaidGroupRaiders" Padding="8 0 8 4" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="10" Foreground="#FF666666" Visibility="Collapsed" TextWrapping="WrapWithOverflow"></TextBlock>
                                            </StackPanel>
                                        </Border>
                                        <ComboBox DockPanel.Dock="Right"  Name="ddlRaidReportType" Margin="5" Width="180" HorizontalAlignment="Left" VerticalAlignment="Top" SelectionChanged="ddlRaidReportType_SelectionChanged" SelectedValuePath="Name">
                                            <ComboBoxItem Name="cbiDamageDone">Damage Dealt</ComboBoxItem>
                                            <ComboBoxItem Name="cbiDPS">DPS</ComboBoxItem>
                                            <ComboBoxItem Name="cbiDamageIn">Damage Taken</ComboBoxItem>
                                            <ComboBoxItem Name="cbiDTPS">DTPS</ComboBoxItem>
                                            <ComboBoxItem Name="cbiEffectiveOut">Effective Healing Done</ComboBoxItem>
                                            <ComboBoxItem Name="cbiEHPS">EHPS</ComboBoxItem>
                                            <ComboBoxItem Name="cbiHealsDone">Healing Done</ComboBoxItem>
                                            <ComboBoxItem Name="cbiHPS">HPS</ComboBoxItem>
                                            <ComboBoxItem Name="cbiThreat">Threat</ComboBoxItem>
                                            <ComboBoxItem Name="cbiTPS">TPS</ComboBoxItem>
                                        </ComboBox>
                                        <TextBlock DockPanel.Dock="Right" VerticalAlignment="Top" Margin="0 8 0 0">Sort</TextBlock>
                                    </DockPanel>
                                    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Grid.Row="1" Margin="0 0 0 0">
                                        <Grid Grid.IsSharedSizeScope="True">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="*"/>
                                            </Grid.ColumnDefinitions>
                                            <Grid.RowDefinitions>
                                                <RowDefinition Height="Auto"/>
                                                <RowDefinition Height="*"/>
                                            </Grid.RowDefinitions>
                                            <Border Grid.Row="0" BorderBrush="#FF5787b6" BorderThickness="0 0 0 1" Padding="5 5 5 4" >
                                                <Grid>
                                                    <Grid.ColumnDefinitions>
                                                        <ColumnDefinition Width="Auto" MinWidth="90" SharedSizeGroup="RaidDetails0"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="RaidDetails1"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails2"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="RaidDetails3"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails4"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="RaidDetails5"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails6"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="RaidDetails7"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails8"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails9"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails10"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails11"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails12"/>
                                                        <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails13"/>
                                                    </Grid.ColumnDefinitions>
                                                    <TextBlock Grid.Column="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d">Name</TextBlock>
                                                    <TextBlock Grid.Column="1" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Total Damage Dealt">Dmg Dealt</TextBlock>
                                                    <TextBlock Grid.Column="2" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Damage Per Second">DPS</TextBlock>
                                                    <TextBlock Grid.Column="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Total Threat">Threat</TextBlock>
                                                    <TextBlock Grid.Column="4" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Threat Per Second">TPS</TextBlock>
                                                    <TextBlock Grid.Column="5" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Total Damage Taken">Dmg In</TextBlock>
                                                    <TextBlock Grid.Column="6" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Total Damage Taken">DTPS</TextBlock>
                                                    <TextBlock Grid.Column="7" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Total Healing Done">Heal</TextBlock>
                                                    <TextBlock Grid.Column="8" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Healing Per Second">HPS</TextBlock>
                                                    <TextBlock Grid.Column="9" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Total Shielding Done">Shield</TextBlock>
                                                    <TextBlock Grid.Column="10" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Shielding Per Second">SPS</TextBlock>
                                                    <TextBlock Grid.Column="11" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Efective Healing Per Second">EHPS</TextBlock>
                                                    <TextBlock Grid.Column="12" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Effective heal Percentage">Eff %</TextBlock>
                                                    <TextBlock Grid.Column="13" HorizontalAlignment="Right" VerticalAlignment="Bottom" FontSize="11" Foreground="#FF50504d" TextAlignment="Right" ToolTip="Combat Time">Time</TextBlock>
                                                </Grid>
                                            </Border>
                                            <!--<ScrollViewer VerticalScrollBarVisibility="Auto" Grid.Row="1" Margin="0 0 0 0">-->
                                            <ItemsControl Name="icRaidDetails" ItemsSource="{Binding}" AlternationCount="2" Grid.Row="1">
                                                <ItemsControl.ItemTemplate>
                                                    <DataTemplate>
                                                        <Border x:Name="OmgBorder">
                                                            <Grid Margin="4">
                                                                <Grid.ColumnDefinitions>
                                                                    <ColumnDefinition Width="Auto" MinWidth="90" SharedSizeGroup="RaidDetails0"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="RaidDetails1"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails2"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="RaidDetails3"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails4"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="RaidDetails5"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails6"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="60" SharedSizeGroup="RaidDetails7"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails8"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails9"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails10"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails11"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails12"/>
                                                                    <ColumnDefinition Width="Auto" MinWidth="40" SharedSizeGroup="RaidDetails13"/>
                                                                </Grid.ColumnDefinitions>
                                                                <Grid.RowDefinitions>
                                                                    <RowDefinition Height="Auto"/>
                                                                </Grid.RowDefinitions>
                                                                <TextBlock Grid.Column="0" Grid.Row="0" Padding="2 0 0 0" HorizontalAlignment="Left" VerticalAlignment="Center" Text="{Binding Path=Name}" ></TextBlock>
                                                                <TextBlock Grid.Column="1" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=DamageOut, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="2" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=DpsOut, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="3" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Threat, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="4" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=Tps, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="5" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=DamageIn, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="6" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=DpsIn, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="7" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=HealOut, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="8" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=HpsOut, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="9" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=ShieldingOut, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="10" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=SpsOut, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="11" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=EhpsOut, StringFormat='{}{0:N0}'}"></TextBlock>
                                                                <TextBlock Grid.Column="12" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=EffectivePct, StringFormat='{}{0:N1}'}"></TextBlock>
                                                                <TextBlock Grid.Column="13" Grid.Row="0" Padding="10 0 0 0" HorizontalAlignment="Right" VerticalAlignment="Center" Text="{Binding Path=CombatTime, StringFormat='{}{0:mm\\:ss\\.fff}'}"></TextBlock>
                                                            </Grid>
                                                        </Border>
                                                        <DataTemplate.Triggers>
                                                            <Trigger Property="ItemsControl.AlternationIndex" Value="1">
                                                                <Setter Property="Background" Value="#11000000" TargetName="OmgBorder"></Setter>
                                                                <Setter Property="CornerRadius" Value="2" TargetName="OmgBorder"></Setter>
                                                            </Trigger>
                                                            <DataTrigger Binding="{Binding Path=IsCurrentCharacter}" Value="true">
                                                                <Setter Property="Background" Value="#DDD0EEFF" TargetName="OmgBorder"></Setter>
                                                                <Setter Property="CornerRadius" Value="2" TargetName="OmgBorder"></Setter>
                                                            </DataTrigger>
                                                        </DataTemplate.Triggers>
                                                    </DataTemplate>
                                                </ItemsControl.ItemTemplate>
                                            </ItemsControl>
                                            <!--</ScrollViewer>-->
                                        </Grid>
                                    </ScrollViewer>
                                </Grid>
                            </TabItem>
                        </TabControl>
                    </Grid>
                </Grid>
                <Border.Background>
                    <LinearGradientBrush MappingMode="Absolute" StartPoint="0,0" EndPoint="0,20">
                        <GradientStop Color="#FFBBBBBB" Offset="0" />
                        <GradientStop Color="#FFEEEEEE" Offset="0.3" />
                        <GradientStop Color="#FFFFFFFF" Offset="1" />
                    </LinearGradientBrush>
                </Border.Background>
            </Border>
            <DockPanel  Grid.Column="0" Grid.Row="2" Margin="10 0 10 2" LastChildFill="False">
                <TextBlock Name="txtSyncMs" Padding="2" FontSize="11" Foreground="#666666" DockPanel.Dock="Left"></TextBlock>
                <TextBlock Name="txtRaidMode" Padding="2" FontSize="11" Foreground="#666666" Margin="10 0 10 0" DockPanel.Dock="Left"></TextBlock>
                <TextBlock Name="txtVersion" Padding="2" FontSize="11" Margin="10 0 0 0" Foreground="#666666" DockPanel.Dock="Right">v 123</TextBlock>
                <TextBlock Padding="2" FontSize="11" Foreground="#666666" Margin="10 0 0 0" DockPanel.Dock="Right"><Hyperlink NavigateUri="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=42HR7FNKVXCTS" RequestNavigate="Hyperlink_RequestNavigate">Donate</Hyperlink></TextBlock>
            </DockPanel>
        </Grid>
        <Border.Effect>
            <DropShadowEffect BlurRadius="10" ShadowDepth="0" Opacity=".5" />
        </Border.Effect>
    </Border>
</Window>
